-- GENERATED SPELL FOR [Shadowsworn Adept] --


function spell0_6006(pUnit, Event) --@Blood Leech,Heal--
pUnit:FullCastSpellOnTarget(11015,pUnit)
pUnit:RegisterEvent('Sorts_6006', 569, 1)
end

function spell1_6006(pUnit, Event) --@Dark Offering,Heal--
pUnit:FullCastSpellOnTarget(7154,pUnit)
pUnit:RegisterEvent('Sorts_6006', 0, 1)
end

function Sorts_6006(pUnit, Event)
local choix_sorts_6006 = math.random(0, 1)
if choix_sorts_6006 == 0 then
pUnit:RegisterEvent('spell0_6006', 1, 1)
end
if choix_sorts_6006 == 1 then
pUnit:RegisterEvent('spell1_6006', 1, 1)
end
end

function mob6006_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_6006', math.random(1500, 3000), 1)
end

function mob6006_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6006_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob6006_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(6006, 1, 'mob6006_Action')
RegisterUnitEvent(6006, 2, 'mob6006_Leave')
RegisterUnitEvent(6006, 3, 'mob6006_Kill')
RegisterUnitEvent(6006, 4, 'mob6006_Die')
